home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG PD-ROM BV3
/
BMUG PD-ROM Version BV3 (CDRM1097900).iso
/
HyperCard
/
Games
/
CirclusMaximus™
/
card_2526.txt
< prev
next >
Wrap
Text File
|
1991-03-02
|
3KB
|
138 lines
-- card: 2526 from stack: in
-- bmap block id: 5047
-- flags: 4000
-- background id: 2238
-- name: Plain Circle
----- HyperTalk script -----
on mouseUp
set numberFormat to <0.000000>
--Calculate Circumference
get card field "Diameter"*pi
put it into card field "Circumference"
--Calculate Area
get (pi*(card field "Diameter"^2))/4
put it into card field "Area"
--Calculate Radius
get card field "Diameter"/2
put it into card field "Radius"
--Calculate Equal Periphery Square
get card field "Diameter"*.78540
put it into card field "Equal Periphery Square"
--Calculate Square In Circle
get card field "Diameter"*.70711
put it into card field "Square in Circle"
end mouseUp
-- part 3 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=46 top=88 right=105 bottom=152
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Diameter
-- part 4 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=308 top=92 right=111 bottom=456
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Circumference
-- part 5 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=308 top=118 right=137 bottom=456
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Area
-- part 6 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=308 top=144 right=163 bottom=456
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Radius
-- part 7 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=316 top=228 right=247 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Equal Periphery Square
-- part 8 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=316 top=261 right=280 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Square In Circle
-- part contents for card part 3
----- text -----
1.000000
-- part contents for card part 4
----- text -----
3.141593
-- part contents for card part 5
----- text -----
0.785398
-- part contents for card part 6
----- text -----
0.500000
-- part contents for card part 7
----- text -----
0.785400
-- part contents for card part 8
----- text -----
0.707110